package com.jsb.laundry.model.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 洗衣分类表
 * @JsonInclude(JsonInclude.Include.NON_NULL) //为NULL时不序列化
 * @JsonInclude(JsonInclude.Include.NON_EMPTY) //为""或为NULL时不序列化
 *
 * @TableName laundry_category_v1
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "洗衣分类及商品", description = "洗衣分类及商品接口数据")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LaundryCategoryVo implements Serializable {

    @ApiModelProperty("分类id")
    private String cateId;

    @ApiModelProperty("分类名称")
    private String cateName;

    @ApiModelProperty("分类下商品")
    private List<LaundryCategoryChildren> goodsDataList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @ApiModel(value = "商品", description = "商品数据")
    public static class LaundryCategoryChildren {
        @ApiModelProperty("商品id")
        private String goodsId;
        @ApiModelProperty("商品标题")
        private String goodTitle;
        @ApiModelProperty("商品图片")
        private String goodsImg;
        @ApiModelProperty("商品销量")
        private String goodsSales;
        @ApiModelProperty("商品最低价格id")
        private String serveId;
        @ApiModelProperty("商品最低价格")
        private String bottomServePrice;
        @ApiModelProperty("特殊商品展示(0:可加入购物车,1:直接进入确认订单页面)")
        private String hintFlag;
    }
}
